<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let obj = {};
        // Reflect用法和Object基本一致，我们先简单的看一下
        Reflect.defineProperty(obj,'name',{
            value:'mikaisa',
            enumerable:true,//能否被遍历到
            writable:true//是否可修改
        });
        console.log(obj);
    </script>
</body>

</html>